package org.alfalfa.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author : Max-Goday
 * @Created : 2016-09-29
 * @E-mail : goday.max@gmail.com
 * @Version : 1.0
 */
@RestController
public class HelloWorldController {

	@RequestMapping("/hello")
	public Object hello(HttpServletRequest request) {
		System.out.println("Hello World @" + request.getParameter("by"));
		return "Hello World @" + request.getParameter("by");
	}

}
